<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>splice-三个参数</title>
</head>
<body>
<script>
    var arr4 = ["a", "b", "c", "d", "e", "f"];

    //从第index为1的位置开始删除元素,一共删除三个元素。并且在 index=1 的前面追加两个元素
    var result4 = arr4.splice(1, 3, "千古壹号", "vae");
    console.log("arr4：" + JSON.stringify(arr4));
    console.log("result4：" + JSON.stringify(result4));
</script>
</body>
</html>